package com.mrdeer.user.convert;

import com.mrdeer.user.api.dto.authorization.PrivilegeDTO;
import com.mrdeer.user.api.entity.AuthorizationPrivilege;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 17:36
 */
@Mapper
public interface AuthorizationPrivilegeConvert {

    AuthorizationPrivilegeConvert INSTANCE = Mappers.getMapper(AuthorizationPrivilegeConvert.class);

    PrivilegeDTO entity2Dto(AuthorizationPrivilege entity);

    AuthorizationPrivilege dto2Entity(PrivilegeDTO dto);

    List<PrivilegeDTO> entityList2Dto(List<AuthorizationPrivilege> authorizationRole);
}
